package clientInfo

import (
	"LRAdminServer/api/v1"
	"LRAdminServer/middleware"
	"github.com/gin-gonic/gin"
)

type ClientPlatformRouter struct {
}

// InitClientPlatformRouter 初始化 登录平台 路由信息
func (s *ClientPlatformRouter) InitClientPlatformRouter(Router *gin.RouterGroup) {
	clientRouter := Router.Group("client").Use(middleware.OperationRecord())
	clientRouterWithoutRecord := Router.Group("client")
	var clientApi = v1.ApiGroupApp.ClientInfoApiGroup.ClientPlatformApi
	{
		clientRouter.POST("createClientPlatform", clientApi.CreateClientPlatform)   // 新建登录平台
		clientRouter.DELETE("deleteClientPlatform", clientApi.DeleteClientPlatform) // 删除登录平台
		clientRouter.DELETE("deleteClientPlatformByIds", clientApi.DeleteClientPlatformByIds) // 批量删除登录平台
		clientRouter.PUT("updateClientPlatform", clientApi.UpdateClientPlatform)    // 更新登录平台
	}
	{
		clientRouterWithoutRecord.GET("findClientPlatform", clientApi.FindClientPlatform)        // 根据ID获取登录平台
		clientRouterWithoutRecord.GET("getClientPlatformList", clientApi.GetClientPlatformList)  // 获取登录平台列表
	}
}
